package com.stx.dao.impl;

import org.springframework.orm.hibernate3.HibernateTemplate;

import com.stx.dao.FilmTypeDao;
import com.stx.entity.Film_type;

public class FillmTypeDaoImpl  implements FilmTypeDao{

	 private HibernateTemplate sessionFactory;
	    
		public HibernateTemplate getSessionFactory() {
			return sessionFactory;
		}
		public void setSessionFactory(HibernateTemplate sessionFactory) {
			this.sessionFactory = sessionFactory;
		}
	
	
	@Override
	public void addFilmType(Film_type film_type) {
		sessionFactory.save(film_type);
		sessionFactory.flush();
		
	}

}
